﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Awaken.Utils.WidgetCode
{
    /// <summary>
    /// 返回码
    /// </summary>
    public enum ReturnCode
    {
        /// <summary>
        /// 0 一切正常
        /// </summary>
        Success = 0,

        /// <summary>
        /// 1001 登录超时
        /// </summary>
        LoginTimeout = 1001,

        /// <summary>
        /// 2046 需要授权
        /// </summary>
        NeedAuth = 2046,

        /// <summary>
        /// 2047 权限不够
        /// </summary>
        NoRole = 2047,

		/// <summary>
		/// 2049 安全升级
		/// </summary>
		SecurityUpgrade = 2049,

		/// <summary>
		/// 8888 通常错误(未知)
		/// </summary>
		Common = 8888,
    }
    /// <summary>
    /// 返回值文本帮助集合
    /// </summary>
    public class ReturnCodeHelper
    {
        public const string SUCCESS = "操作成功";
        public const string LOGIN_TIMEOUT = "登录已超时";
        public const string NEED_AUTH = "需要授权";
        public const string NO_ROLE = "权限不够";
        public const string COMMON = "一般常规错误";

    } 


    
   

}
